package com.diamondparking.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.hibernate.validator.NotEmpty;

@Entity
public class Make implements Serializable {

    @Id
    private long id;
    @NotEmpty
    @Column(unique = true)
    private String name;

    public Make() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return name;
    }
}
